<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="box_choose.js"></script>
    <style>
        body,html{
            height: 100%;
            width: 100%;
            margin: 0;
            position: absolute;
        }
    </style>
</head>
<body>
    
</body>
<script>
    document.body.onmousedown = function(e){
        console.log(e.clientX,e.clientY)
        box_choose.start(e.clientX,e.clientY);
    }

    document.body.onmousemove = function(e){
        box_choose.move(e.clientX,e.clientY);
    }

    document.body.onmouseup = function(e){
        box_choose.end(e.clientX,e.clientY);
    }
</script>
</html>